<ion-header no-border>
  <ion-navbar color="headerColor">
    <ion-title>
      修改密码
    </ion-title>
  </ion-navbar>
</ion-header>

<ion-content class="bg-color">
  <ion-list class="top-list">
    <ion-item>
      <ion-label>原密码</ion-label>
      <ion-input type="password" name="oldpwd" #oldpwd required placeholder="请输入原密码"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label>新密码</ion-label>
      <ion-input type="password" name="newpwd" #newpwd required placeholder="密码是6-20位数字、字母或下划线" ng-pattern="/[a-zA-Z0-9]/"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label>确认密码</ion-label>
      <ion-input type="password" name="confirmpwd" #confirmpwd required placeholder="请确认登录密码"></ion-input>
    </ion-item>
  </ion-list>

  <div class="div-button-position">
    <button ion-button   padding-top padding-bottom style="width: 30%;"
            (click)="submitUpdate(oldpwd,newpwd,confirmpwd)">
      确定
    </button>
  </div>
</ion-content>
